package cn.virens.web.components.shiro;

import java.util.Collection;

public interface ShiroAuthInterface {
	public static final String NAME = "ShiroAuthInterface";

	String login(String account);

	Collection<String> getRoles(String account);

	Collection<String> getResources(String account);

	void onLoginSuccess(String username, String host);

	void onLoginFailure(String username, String host);
}
